{% extends "article/base.html" %}
{% load staticfiles %}
{% block title %} article list {% endblock %}
{% block content %}
    <div>
    <table class="table table-hover">

        <tr>
            <td>序号</td>
            <td>标题</td>
            <td>栏目</td>
            <td>操作</td>
        </tr>
        {% for article in articles %}
        <tr id={{ article.id }}>
            <td>{{ forloop.counter }}</td>
            <td><a href="{{ article.get_absolute_url }}">{{ article.title }}</a></td>
            <td>{{ article.column }}</td>
            <td><a name="edit" href="{% url 'article:redit_article' article.id %}"><span class="glyphicon glyphicon-pencil"></span></a> </td>
        </tr>
        {% endfor %}
    </table>
    </div>
{% endblock %}